import time


def wrapper(fun):
    def inner(*args, **kwargs):
        t1 = time.time()
        res = fun(*args, **kwargs)
        t2 = time.time()
        print('{}运行时间为：{}'.format(fun.__name__, t2 - t1))
        return res

    return inner


